package com.king.pojo;

import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * com.king.pojo
 *
 * @Description: 用户类
 * @Author: kuaipeng
 * @Created: on 2019/12/05
 */
@Data
@Table(name = "tb_user")
public class User {
    /**主键回填*/
    @Id
    @KeySql(useGeneratedKeys = true)
    private Long id;

    private String userName;

    private String password;

    private String name;

    private Integer age;

    private Integer sex;

    private Date birthday;

    private String note;

    private Date created;

    private Date updated;
}
